<script type="text/javascript">
$(function(){
	$.post("branchManage/getBranchInfo",getBranchInfo,"json");
});

//修改
function updateBranch(){
	if($("input[name='branchManage']:checked").length < 1){
		 alertMsg.warn("您未选择数据！")
		 return false;
	 }
	if($("input[name='branchManage']:checked").length > 1){
		 alertMsg.warn("不能选择多于1条数据！")
		 return false;
	 }
	var parm=$("input[name='branchManage']:checked").val();
 	var options={"width":"1000","height":"500","parm":parm};
	$.pdialog.open("branchManage/goUpdateBranch","infos", "修改网点信息",options); 
}

</script>


<div class="pageHeader ">
	<form id="pagerForm" method="post" action="branchManage/getBranchInfo" class="pageForm required-validate" onsubmit="return validateCallback(this,getBranchInfo);">
		<input type="hidden" name="pageNum" value="" /> 
		<input type="hidden" name="numPerPage" value="" />
		<!-- <input type="hidden" name="pageCount" value="" /> -->
		<div class="searchBar" >
			<div class="row" style="padding: 0 10px;">
		<div class="col-md-6 col-sm-12" >
			<p><label>网点名称：</label><input  name="branchName"  class="" type="text" size="30"/></p>			
		</div>
		<div class="col-md-6 col-sm-12" >
		</div>
		</div>
			<div class="subBar">
				<ul> 
					<li>
						<div class="buttonActive" >
							<div class="buttonContent" >
								<button type="submit" onclick="initCurrentPage()">查询</button>
							</div>
						</div>
						<span style="padding-left: 20px"></span>
					</li>
				</ul>
			</div>
		</div>
	</form>	
</div>

<form method="post" action="" class="pageForm required-validate" onsubmit="return validateCallback(this,refresh);" >
	 <div class="pageContent" >
		 <div class="panelBar">
			<ul class="toolBar">
				<li><a class="add" href="branchManage/addBranch" target="dialog" rel="addBranch" width="900" height="550"><span>新增</span></a></li>
				<li><a class="edit"  onclick="return updateBranch();"><span>修改</span></a></li>
				<!-- <li><a class="delete" onclick="return deleteSingleTask();"><span>导出</span></a></li> -->
			</ul>
		</div>
		<div id="ByBranchManage">
		<table class="table" width="100%" layoutH="258">
			<thead>
				<tr align="center">
					<!-- <th width="2%"><input type="checkbox"  name="branchManage" group="branchManage" class="checkboxCtrl"></th> -->
					<th width="3%">选择</th>
					<th width="33%"  orderField="accountLevel">网点编号</th>
					<th width="40%" orderField="accountNo" class="asc">网点名称</th>
					<th width="24%" orderField="accountName">操作</th>
				</tr>
			</thead>
			<tbody id="tbodyByBranch">						
			</tbody>
		</table>
		</div>
		<!--  <div class="panelBar">
			<div class="pages">
				<span>显示</span>
				<select id="numPerPageByTBranch" name="numPerPage" onchange="paging(this,$('#getBranchInfo'),getBranchInfo)">
					<option value="20">20</option>
					<option value="30">30</option>
					<option value="50">50</option>
					<option value="100">100</option>
				</select>
				<span id="totalCountByBranch" ></span>
			</div>
				<div id="paginationByBranch" class="pagination1"  ></div>
		</div> -->
		   	<div class="panelBar">
		<div class="pages">
			<span>显示</span>
			<select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value},'tbodyByBranch',getBranchInfo)">
				<option value="20">20</option>
				<option value="50">50</option>
				<option value="100">100</option>
				<option value="200">200</option>
			</select>
			<span id="totalCountByBranch">条，共${totalCount}条</span>
		</div>

		<div callback='getBranchInfo' id="paginationByBranch" rel="tbodyByBranch" class="pagination" targetType="navTab" totalCount="200" numPerPage="5" pageNumShown="5" currentPage="1"></div>

	</div>
	</div>
</form>
	

